<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\CategorySearch */
/* @var $form yii\widgets\ActiveForm */
?>



  <?php $form = ActiveForm::begin([
//    'fieldConfig' => [
//      'template' => "{label}\n<div class=\"col-sm-10\">{input}<div class='error'>{error}</div></div>",
//      'labelOptions' => ['class' => 'col-sm-2'],
//    ],
    'action' => [\Yii::$app->controller->action->id],
    'method' => 'get',
  ]); ?>

    <?php echo $form->field($model, 'id') ?>

    <?php echo $form->field($model, 'p_id') ?>

    <?php echo $form->field($model, 'title') ?>

  <?php
    echo $form->field($model, 'created_at_start')->widget(\yii\jui\DatePicker::classname(), [
      'language' => 'zh-CN',
      'dateFormat' => 'yyyy-MM-dd',
      'options'=>['class'=>'form-control'],
    ]);
  ?>

  <?php
    echo $form->field($model, 'created_at_end')->widget(\yii\jui\DatePicker::classname(), [
      'language' => 'zh-CN',
      'dateFormat' => 'yyyy-MM-dd',
      'options'=>['class'=>'form-control'],
    ]);
  ?>

    <?php //$form->field($model, 'created_at') ?>

    <?php //$form->field($model, 'updated_at') ?>

    <?php // echo $form->field($model, 'deleted') ?>

    <div class="form-group">
      <?= Html::submitButton('搜索', ['class' => 'btn btn-success']) ?>
      <?= Html::resetButton('重置', ['class' => 'btn btn-default']) ?>
    </div>

    <?php ActiveForm::end(); ?>
